package com.ui.fragment;

import roboguice.inject.InjectView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.core.sdk.core.BaseFragment;
import com.ui.R;
import com.ui.activity.OpenProjectListActivity;

public class MainFragment3 extends BaseFragment implements OnClickListener {

	@InjectView(R.id.fg_main3_open_source_list)
	Button btnOpenProjectList;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected int getContentView() {
		return R.layout.fg_main3;
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		btnOpenProjectList.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if(v == btnOpenProjectList){
			Intent it = new Intent(getBaesActivity(),OpenProjectListActivity.class);
			startActivity(it);
		}
	}
}
